package com.yingjie.commonbase.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 厨房表
 * @TableName kitchen
 */
public class Kitchen implements Serializable {
    /**
     * 
     */
    private Integer kitchenId;

    /**
     * 厨房名称
     */
    private String kitchenName;

    /**
     * 头像地址
     */
    private String kitchenAvatar;

    /**
     * 厨房简介
     */
    private String kitchenDes;

    /**
     * 厨房的用户id
     */
    private Integer kitchenUserId;

    /**
     * 0 禁用；1启用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getKitchenId() {
        return kitchenId;
    }

    /**
     * 
     */
    public void setKitchenId(Integer kitchenId) {
        this.kitchenId = kitchenId;
    }

    /**
     * 厨房名称
     */
    public String getKitchenName() {
        return kitchenName;
    }

    /**
     * 厨房名称
     */
    public void setKitchenName(String kitchenName) {
        this.kitchenName = kitchenName;
    }

    /**
     * 头像地址
     */
    public String getKitchenAvatar() {
        return kitchenAvatar;
    }

    /**
     * 头像地址
     */
    public void setKitchenAvatar(String kitchenAvatar) {
        this.kitchenAvatar = kitchenAvatar;
    }

    /**
     * 厨房简介
     */
    public String getKitchenDes() {
        return kitchenDes;
    }

    /**
     * 厨房简介
     */
    public void setKitchenDes(String kitchenDes) {
        this.kitchenDes = kitchenDes;
    }

    /**
     * 厨房的用户id
     */
    public Integer getKitchenUserId() {
        return kitchenUserId;
    }

    /**
     * 厨房的用户id
     */
    public void setKitchenUserId(Integer kitchenUserId) {
        this.kitchenUserId = kitchenUserId;
    }

    /**
     * 0 禁用；1启用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 0 禁用；1启用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 创建时间
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * 创建时间
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * 更新时间
     */
    public Date getUpdatedAt() {
        return updatedAt;
    }

    /**
     * 更新时间
     */
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Kitchen other = (Kitchen) that;
        return (this.getKitchenId() == null ? other.getKitchenId() == null : this.getKitchenId().equals(other.getKitchenId()))
            && (this.getKitchenName() == null ? other.getKitchenName() == null : this.getKitchenName().equals(other.getKitchenName()))
            && (this.getKitchenAvatar() == null ? other.getKitchenAvatar() == null : this.getKitchenAvatar().equals(other.getKitchenAvatar()))
            && (this.getKitchenDes() == null ? other.getKitchenDes() == null : this.getKitchenDes().equals(other.getKitchenDes()))
            && (this.getKitchenUserId() == null ? other.getKitchenUserId() == null : this.getKitchenUserId().equals(other.getKitchenUserId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getKitchenId() == null) ? 0 : getKitchenId().hashCode());
        result = prime * result + ((getKitchenName() == null) ? 0 : getKitchenName().hashCode());
        result = prime * result + ((getKitchenAvatar() == null) ? 0 : getKitchenAvatar().hashCode());
        result = prime * result + ((getKitchenDes() == null) ? 0 : getKitchenDes().hashCode());
        result = prime * result + ((getKitchenUserId() == null) ? 0 : getKitchenUserId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", kitchenId=").append(kitchenId);
        sb.append(", kitchenName=").append(kitchenName);
        sb.append(", kitchenAvatar=").append(kitchenAvatar);
        sb.append(", kitchenDes=").append(kitchenDes);
        sb.append(", kitchenUserId=").append(kitchenUserId);
        sb.append(", status=").append(status);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}